<?php

/**
 * Configures locales
 *
 */
class CMS_I18n_Locale
{
    /**
     * Initializes locales
     *
     * @param array $config
     */
    public static function init($config)
    {
        $language = $config['translate']['default_language'];
        $locale = new Zend_Locale($config['translate']['default_locale']);

        $adapter = new CMS_I18n_Language($config['translate']);
        $adapter->setApplicationLanguage($language);
    }
}
